﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLineNew.Models.Entity.Base;

namespace ZoneLineNew.Models
{
    public class StationConfigBase : EntityBase {

        private string _ip;
        /// <summary>
        /// IP
        /// </summary>
        public string Ip
        {
            get { return _ip; }
            set => SetProperty(ref _ip, value);
        }

        private int _port = 102;
        /// <summary>
        /// 端口
        /// </summary>
        public int Port {
            get { return _port; }
            set => SetProperty(ref _port, value);
        }

        private string _stationCode;
        /// <summary>
        /// 站点编号
        /// </summary>
        public string StationCode {
            get { return _stationCode; }
            set => SetProperty(ref _stationCode, value);
        }

        private string _readStartAddr;
        /// <summary>
        /// 读取起始地址
        /// </summary>
        public string ReadStartAddr
        {
            get { return _readStartAddr; }
            set => SetProperty(ref _readStartAddr, value);
        }

        private ushort _readLength;
        /// <summary>
        /// 读取长度
        /// </summary>
        public ushort ReadLength {
            get { return _readLength; }
            set => SetProperty(ref _readLength, value);
        }

        private string _endUploadCodedAddr;
        /// <summary>
        /// 条码上传结束地址（Mes写入）
        /// </summary>
        public string EndUploadCodeAddr
        {
            get { return _endUploadCodedAddr; }
            set => SetProperty(ref _endUploadCodedAddr, value);
        }

        private string _endUploadDataAddr;
        /// <summary>
        /// 数据上传结束地址（Mes写入）
        /// </summary>
        public string EndUploadDataAddr
        {
            get { return _endUploadDataAddr; }
            set => SetProperty(ref _endUploadDataAddr, value);
        }

        private string _allowWorkAddr;
        /// <summary>
        /// 允许工作地址（Mes写入）
        /// </summary>
        public string AllowWorkAddr
        {
            get { return _allowWorkAddr; }
            set => SetProperty(ref _allowWorkAddr, value);
        }

        private string _heartToPlcAddr;
        /// <summary>
        /// 写入PLC心跳地址（Mes写入）
        /// </summary>
        public string HeartToPlcAddr {
            get { return _heartToPlcAddr; }
            set => SetProperty(ref _heartToPlcAddr, value);
        }

        private string _printRltAddr;
        /// <summary>
        /// 打标结论地址（Mes写入）
        /// </summary>
        public string PrintRltAddr {
            get { return _printRltAddr; }
            set => SetProperty(ref _printRltAddr, value);
        }


        private string _remark;
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            get { return _remark; }
            set => SetProperty(ref _remark, value);
        }

    }
}
